-- GENERATED SPELL FOR [Bloodmoon Worgen] --


function spell0_27020(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(32714,pUnit)
pUnit:RegisterEvent('Sorts_27020', 8313, 1)
end

function spell1_27020(pUnit, Event) --@Infected Worgen Bite,n/a--
pUnit:FullCastSpellOnTarget(53094,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27020', 0, 1)
end

function Sorts_27020(pUnit, Event)
local choix_sorts_27020 = math.random(0, 1)
if choix_sorts_27020 == 0 then
pUnit:RegisterEvent('spell0_27020', 1, 1)
end
if choix_sorts_27020 == 1 then
pUnit:RegisterEvent('spell1_27020', 1, 1)
end
end

function mob27020_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27020', math.random(1500, 3000), 1)
end

function mob27020_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27020_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27020_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27020, 1, 'mob27020_Action')
RegisterUnitEvent(27020, 2, 'mob27020_Leave')
RegisterUnitEvent(27020, 3, 'mob27020_Kill')
RegisterUnitEvent(27020, 4, 'mob27020_Die')
